package com.teamin.entity;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * @author  qfu
 * @Date 2017/9/19 16:48
 * 临时文件的实体
 */
public class FileTempEntity implements Serializable {

    public static int STORAGE_TYPE_TASK = 1 ;//表示任务
    public static int STORAGE_TYPE_CIRCLE = 2 ;//表示圈子

    @ApiModelProperty(value = "主建ID")
    private Integer id;

    @ApiModelProperty(value = "文件的UUID")
    private String uuid;

    @ApiModelProperty(value = "文件的后缀")
    private String suffix;

    @ApiModelProperty(value = "文件的创建时间")
    private Date createTime;

    @ApiModelProperty(value = "文件的名称")
    private String fileName ;

    @ApiModelProperty(value = "存储类型 所属的类型 1 表示任务,2表圈子")
    private Short belongType ;

    @ApiModelProperty(value = "存储类型的ID")
    private Long belongId ;

    public void setBelongType(Short belongType) {
        this.belongType = belongType;
    }

    public void setBelongId(Long belongId) {
        this.belongId = belongId;
    }

    public Short getBelongType() {
        return belongType;
    }

    public Long getBelongId() {
        return belongId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid == null ? null : uuid.trim();
    }

    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix == null ? null : suffix.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "FileTempEntity{" +
                "id=" + id +
                ", uuid='" + uuid + '\'' +
                ", suffix='" + suffix + '\'' +
                ", createTime=" + createTime +
                ", fileName='" + fileName + '\'' +
                ", belongType=" + belongType +
                ", belongId=" + belongId +
                '}';
    }
}